package homework4;

public class TestCase<T> implements IPred<IListTest<T>> {

	IGList<T> a;
	IGList<T> b;

	public TestCase(IGList<T> a, IGList<T> b) {

		this.a = a;
		this.b = b;

	}

	@Override
	public boolean process(IListTest<T> t) {
		
		boolean result = t.run(a, b);
		
		System.out.println( t.toString() + ": " + result );
		
		return result;
	}

}
